package com.zhuhao.basic.reflect;

// 示例类：用于反射操作
public class MyClass extends MyParent {
    public String publicField = "public";
    private int privateField = 42;

    public MyClass() {
    }

    public MyClass(String message) {
        System.out.println("Constructor with message: " + message);
    }

    public void publicMethod(String param) {
        System.out.println("Public method called with: " + param);
    }

    private int privateMethod(int a, int b) {
        return a + b;
    }

    public static void staticMethod() {
        System.out.println("Static method called");
    }

    @Override
    public String toString() {
        return "MyClass{publicField='" + publicField + "', privateField=" + privateField + "}";
    }

    @Override
    public void myMethod() {
        System.out.println("子类实现接口的方法");
    }

}